import send_msg from './_service';

const GET_OPENID_CODE_NODEJS = 'thirdpart.usecodegetwxservice.intranet';

export default async function get_openid_by_code(_action_id: string, _session_id: string, spaceid: string, code: string) {
	const msg = {
		client_type: 'weixin_pub',
		code,
		flag: '101',
		spaceid
	};
	return await send_msg(GET_OPENID_CODE_NODEJS, msg, false, false);
}
